/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mahumLogs.backedbeans;

import java.util.Objects;

/**
 *
 * @author Kalast
 */
public class DayLog {
    private int day;
    private MonthLog month;

    public DayLog(MonthLog month, int day) {
        this.day = day;
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final DayLog other = (DayLog) obj;
        if (this.day != other.day) {
            return false;
        }
        if (!Objects.equals(this.month, other.month)) {
            return false;
        }
        return true;
    }

    public MonthLog getMonth() {
        return month;
    }

    public void setMonth(MonthLog month) {
        this.month = month;
    }
}
